package com.xueyi.game.backend.entity.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 描述 基础的用户登录Req
 *
 * @auther 俞烨
 * @date 2022-11-08 15
 */
@Data
public class BaseUserLoginDto {

    @NotBlank(message = "账号不能为空")
    @Length(max = 20, min = 1, message = "账号的长度为1~20")
    private String account;

    @NotBlank(message = "密码不能为空")
    private String password;
}
